home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / tripong.swf / scripts / frame_1 / PlaceObject2_17_9 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-04-23  |  452 b   |  18 lines

  1. onClipEvent(enterFrame){
  2.    _parent.gotoAndStop(1);
  3.    lod = _parent.getBytesLoaded();
  4.    tot = _parent.getBytesTotal();
  5.    center = Math.round(lod / tot * 1000000) / 10000;
  6.    if(tex == "100%")
  7.    {
  8.       narf++;
  9.       if(narf > 10)
  10.       {
  11.          _parent.gotoAndStop(2);
  12.       }
  13.    }
  14.    cent = (cent * 2 + center) / 3;
  15.    tex = Math.round(cent * 10000) / 10000 + "%";
  16.    _parent.byte = Math.round(tot / 1024 * 100) / 100 + "KB";
  17. }
  18.